package com.swt.gap.dao;

import com.swt.gap.model.entity.EventElement;
import com.swt.gap.model.vo.element.EventElementVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EventElementMapper {
    int deleteByPrimaryKey(Integer elementId);

    int insertSelective(EventElement record);

    EventElement selectByPrimaryKey(Integer elementId);

    int updateByPrimaryKeySelective(EventElement record);

    int updateElementBydelete(Integer elementId);

    List<EventElementVO> selectByEntityAndUser(@Param("entityId") Integer entityId, @Param("createdBy") Integer createdBy);

}